<div ng-controller="H5hdCtrl" ng-init="addAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/h5hd/list">{{'H5活动'}}</a></li>
        <li class="active">
            {{!h5hd_id ?"创建":"edit"|translate}}
        </li>
    </ul>
    <form name="Tradeform" class="sui-form form-horizontal" novalidate>
        <div mywizard class="sui-steps">
            <step>
                <label><span class="round">1</span><span>活动设置</span></label>
                <i class="triangle-right-bg"></i><i class="triangle-right"></i>
            </step>
            <step>
                <label><span class="round">2</span><span>完成</span></label>
                <i class="triangle-right-bg"></i><i class="triangle-right"></i>
            </step>
            <!--  <step>
                <label><span class="round">3</span><span>完成</span></label>
                <i class="triangle-right-bg"></i><i class="triangle-right"></i>
            </step> -->
            <div stepcontent0 class="stepContent">
                <div class="stepbody">
                    <div class="control-group">
                        <label class="control-label v-top">
                            活动标题：
                        </label>
                        <div class="controls">
                            <input id="title" type="text" name="name" ng-model="h5hd.title" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top">
                            活动数量：
                        </label>
                        <div class="controls">
                            <input id="title" type="number" name="name" ng-model="h5hd.limitcount" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            起始时间：
                        </label>
                        <div class="controls">
                            <input id="start_time" ng-model="h5hd.start_time" datetimepicker name="start_time" min-date="{{h5hd.start_time}}" required>
                            <span class="float_left" style="width:10px;">至</span>
                            <input id="end_time" ng-model="h5hd.end_time" datetimepicker name="end_time" min-date="{{h5hd.start_time}}" required>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top"> {{'选择公众号'| translate}}：</label>
                        <div class="controls">
                            <wx-app-list ng-model="h5hd.gzh_appid" dft="1" ary="storeary" xc="1"> </wx-app-list>
                        </div>
                    </div>
                </div>
                <div>
                    <button type="button" id="next1" class="sui-btn btn-primary" mywizard-next>{{'Next step'|translate}}</button>
                </div>
            </div>
            <div stepcontent1 class="stepContent">
                <div class="stepbody">
                    <div class="control-group">
                        <label class="control-label v-top"> {{'主图'| translate}}：</label>
                        <div class="controls">
                            <div style="margin-bottom: 10px;">
                                <img ng-src="{{h5hd.img}}" style="width:300px;height: 300px">
                            </div>
                            <label>
                                链接：
                                <input ng-model="h5hd.img" type="text" name="name" value="" style="width:100px">
                                <attachment owner-id="1" owner-type="item" dhf-ng-model="h5hd.img" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                            </label>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top"> {{'头部内容'| translate}}：</label>
                        <div class="controls">
                            <ueditor ng-model="h5hd.content1" uid="{{uid}}" style="width:694px"></ueditor>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top"> {{'底部内容'| translate}}：</label>
                        <div class="controls">
                            <ueditor ng-model="h5hd.content" uid="{{uid1}}" style="width:694px"></ueditor>
                        </div>
                    </div>
                </div>
                <div>
                    <button type="button" class="sui-btn btn-primary" mywizard-previous>上一步</button>
                    <button id="pintuanAdd" class="sui-btn btn-primary" ng-disabled="!h5hd.title && !h5hd.content && !h5hd.gzh_appid" ng-click="h5hdAdd();">
                        保存
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>